<style type="text/css">
.qf-comment li {padding:12px 0;border-top:1px solid #EEEEEE}
.qf-comment li .goodpic {margin-right:10px;display:block;width:80px;height:80px;}
.qf-comment li .goodpic:hover {border-color:#dbdbdb}
.qf-comment li .inline {line-height:1.5;}
.qf-comment li b.author {color:#FF4560;padding-top:3px;display:block;}
.qf-comment li .intro {padding-top:3px;height:54px;overflow:hidden;}
</style>
<style>
.qf_comment .bd,.qf_comment .gname,.qf_comment .desc,.qf_comment .info,.qf_comment ul {overflow:hidden}
.qf_comment {width:793px;margin:0 auto}
.qf_comment .hd {height:33px;line-height:33px;}
.qf_comment .hd h3 {font-size:14px;text-indent:1em}
.qf_comment .bd {border-left:1px solid #ddd;border-top:1px solid #ddd;height:206px;position:relative}
.qf_comment ul {height:103px;}
.qf_comment li {float:left;width:371px;border-right:1px solid #ddd;border-bottom:1px solid #ddd;padding:12px;padding-top:20px;}
.qf_comment li .img{float:left;padding-right:10px;position: relative;width:70px; overflow:visible;}
.qf_comment li .img i{display:block;width:29px;height:31px;background:url("images/rm.png") no-repeat;position:absolute;top:-12px; right:10px;z-index:1}
.qf_comment .gname {height:18px;line-height:18px}
.qf_comment .gname a{color:#015fa9}
.qf_comment .gname a:hover{color:red}
.qf_comment .desc {color:#999;height:36px;line-height:18px}
.qf_comment .info {float:right;width:290px;}
.qf_comment .img img {width:70px;height:70px;display:block;margin:0 auto}
</style>

<div class="box1">
 		<div class="hd"><{if $setting.title}><h3><{$setting.title}></h3><{/if}></div>
        <div class="bd" id="comment_widgets" style="top:0px">
        <ul class="qf-comment">
            <{foreach from=$data item=item key=key}>
                <li class="clearfix">
                    <a href="<{link app=b2c ctl=site_product act=index arg0=$item.goodsId}>" target="_blank" class="flt goodpic"><img src="<{$item.goodsPic}>" width="80" height="80" alt="<{$item.goodsName}>" /></a>
                    <div class="inline">
                    	<b class="author"><{$item.commentAuthor}></b>
                     	<p class="intro"><{$item.comment|cut:$setting.commentsize}></p>
                    </div>
                </li>
            <{/foreach}>
        </ul>
        </div>
</div>

<script type="text/javascript">
window.addEvent('domready',function() {
	var Mcommtr = $('comment_widgets').getElements('ul');	
	if(Mcommtr.length < 1) return;
	var i = Mcommtr.length - 1;
	var Mslidecomm = function() {
		Mcommtr[i].setStyles({
			'height': 0 + 'px',
			'opacity':0
		});
		Mcommtr[i].inject($('comment_widgets'),'top');
		Mcommtr[i].set('morph',{duration:500,transition:'sine:out'}).morph({'height':'103px',opacity:1})
		i--;
		if (i == -1) i = Mcommtr.length - 1;
	}
	setInterval(Mslidecomm, 4000);
})
</script>